package com.bs.sc.front.goodsCar.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import com.bs.sc.base.entity.BaseEntity;
import com.bs.sc.front.user.entity.User;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@NoArgsConstructor
@Entity
@Table(name = "goods_car")
@EqualsAndHashCode(callSuper = true)
public class GoodsCar extends BaseEntity {

	@NonNull
	@OneToOne
	@JoinColumn(name = "user_id")
	private User user;
}
